package com.xjzp.business.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.bjf.exception.BJFException;
import com.bjf.struts.action.base.BaseAction;
import com.bjf.util.ContextUtil;
import com.xjzp.business.db.bo.iface.I_TEST_BO;
import com.xjzp.business.db.hibernate.po.ScAdmin;
import com.xjzp.business.db.hibernate.po.TbRole;

public class TestAction extends BaseAction {

	@Override
	public ActionForward process(ActionMapping actionMapping,
			ActionForm actionForm, HttpServletRequest request,
			HttpServletResponse response) throws BJFException, Exception {
		// TODO Auto-generated method stub
		I_TEST_BO bo = (I_TEST_BO)ContextUtil.getBean("TESTBO");
		ScAdmin s = new ScAdmin();
		s.setId(1);
		s.setName("123");
		s.setPassword("123");

		TbRole t = new TbRole();
		t.setId(3);

		bo.updateScAdminAndTbRole(s, t);
		
		return null;
	}

}
